package com.hy.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created With IntelliJ IDEA.
 * Descriptions:
 * author: Mr.Du
 * Date: 2022/10/20
 * Time: 20:29
 */
@RestController
@RequestMapping("/service")
public class ServiceInfoController {
    
    @Value("${server.port}")
    private String port;
    
    @GetMapping("/port")
    public String getPort(){
        return port;
    }
}
